/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.unifor.redes1.odirabel;

import br.unifor.redes1.odirabel.gui.server.Cliente;

/**
 *
 * @author pedro
 */
public class Util {

    public static Cliente stringToUser(String text){
        return new Cliente(text.substring(0, text.indexOf("(")),text.substring(text.indexOf("(")+1,text.indexOf(")")));
    }

}
